package bdz.projects.atwww.electrolux.views.analogue
{
	import bdz.projects.atwww.electrolux.events.ELUIEvent;
	import bdz.projects.atwww.electrolux.model.core.ELOption;
	import bdz.projects.atwww.electrolux.ui.ELOptionsControl;
	import bdz.projects.atwww.electrolux.views.analogue.support.ELAnalogueOptionItem;

	public class ELAnalogueOptions extends ELOptionsControl {
		
		public function ELAnalogueOptions() {
			super();
			
		}
		override protected function renderOptionItems():void{
			
			_optionReferences = new Array();
			var sx:Number = -128;
			for each (var opts:ELOption in _optionSet){
				var ref:ELAnalogueOptionItem = new AnalogueOptionItem();
				ref.addEventListener(ELUIEvent.OPTION_CHANGED, onOptionChanged);
				ref.option = opts;
				ref.x = sx;
				ref.y = -17;
				sx += 96;
				_optionReferences.push(addChild(ref));	
			}
			controller.analogue = true;
		}
		
	}
}